package com.wh.hotel.service.strategy.time;

import com.wh.hotel.util.DateWhUtil;
import com.wh.hotel.vo.HotelPriceStrategyVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * @author luweije
 */
@Slf4j
@Component
public class ForeverValidTime extends ValidTimeAbstract {

    @Override
    public boolean isHit(Date cur, HotelPriceStrategyVo strategyVo) {
        return true;
    }

    @Override
    public List<Date> calculateValidTime(HotelPriceStrategyVo strategyVo, Date startDt, Date endDt) {
        return DateWhUtil.createDateByDay(startDt, endDt);
    }
}
